package com.goktech.olala.core.service;

import com.goktech.olala.core.resp.RespShopCartVo;
import com.goktech.olala.server.pojo.order.ShopCart;

import java.util.List;

/**
 * @Classname IShopCartService
 * @Description TODO
 * @Date 2020/12/21 21:33
 * @Created by ASUS
 */
public interface IShopCartService {

    int deleteByPrimaryKey(Integer shopCartId);

    int insert(ShopCart record);

    ShopCart selectByPrimaryKey(Integer shopCartId);

    List<ShopCart> selectAll();

    int updateByGoodsId(ShopCart record);

    List<ShopCart> selectByCustomerId(String customerId);

    //查询购物车
    List<RespShopCartVo> shopcartInfo(String customerId);

    ///查询商品是否在购物车已存在
    ShopCart selectByGoodsId(String goodsId,String customerId);

    //添加购物车
    int addShopCart(ShopCart shopCart);

}
